//package com.example.security.filter;
//
//import com.example.security.provisioning.CustomUserDetailsManager;
//import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
//import org.springframework.security.core.userdetails.UserDetailsService;
//import org.springframework.security.crypto.factory.PasswordEncoderFactories;
//import org.springframework.security.crypto.password.PasswordEncoder;
//
///**
// * @className: SecurityConfig
// * @author: YTF
// * @date: 2025/4/30 11:37
// * @description: 自定义实现mybatis-plus认证功能
// */
//@Configuration
//@EnableWebSecurity
//public class CustomSecurityConfig {
//
//    @Bean
//    @ConditionalOnMissingBean(UserDetailsService.class)
//    CustomUserDetailsManager inMemoryUserDetailsManager() {
//        return new CustomUserDetailsManager();
//    }
//
//    @Bean
//    public PasswordEncoder passwordEncoder() {
//        return PasswordEncoderFactories.createDelegatingPasswordEncoder();
//    }
//}